package com.ischoolbar.programmer.service.home.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.dao.home.AccountDao;
import com.ischoolbar.programmer.dao.home.TeaCategoryDao;
import com.ischoolbar.programmer.entity.home.Account;
import com.ischoolbar.programmer.entity.home.TeaCategory;
import com.ischoolbar.programmer.service.home.AccountService;
import com.ischoolbar.programmer.service.home.TeaCategoryService;


@Service
public class TeaCategoryServiceImpl implements TeaCategoryService{

	@Autowired
	private TeaCategoryDao teaCategoryDao;
	
	
	@Override
	public List<TeaCategory> findAll() {
		// TODO Auto-generated method stub
		return teaCategoryDao.findAll();
	}


	@Override
	public int getTotal(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return teaCategoryDao.getTotal(queryMap);
	}


	@Override
	public List<TeaCategory> findList(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return teaCategoryDao.findList(queryMap);
	}


	@Override
	public int edit(TeaCategory teaCategory) {
		// TODO Auto-generated method stub
		return teaCategoryDao.edit(teaCategory);
	}
	
	
}
